package com.zgm.ch05.aop.after._3_5_4_2;

import java.util.Random;

public class KeyGenerator {

	public static final long WEAK_KEY = 0xFFFFFF000000L;
	public static final long STRONG_KEY = 0XACDF03F00000L;
	
	private Random rand = new Random();
	
	public long getKey(){
		int x = rand.nextInt(3);
		
		if(x == 1){
			return WEAK_KEY;
		} else {
			return STRONG_KEY;
		}
	}
}
